from PIL import Image


class Watermark(object):
    def __init__(self, scale=1):
        self.scale = scale

    def process(self, image):
        return image.resize(tuple(map(lambda x: int(x * self.scale), image.size)))
